package cn.kgc.ssm.controller;

import cn.kgc.ssm.service.EchartsService;
import cn.kgc.ssm.utils.ResponseResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 课工场
 * @date 2024/3/11
 * @description 图像报表控制层
 */
@RestController
@RequestMapping("echarts")
public class EchartsController {

    @Resource
    private EchartsService echartsService;

    // 面板数据
    @GetMapping("panel")
    public ResponseResult getPanelData() {
           return echartsService.getPanelData();
    }


    @GetMapping("line")
    public ResponseResult getLineData() {
        return echartsService.getLineData();
    }

}
